﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web.Data
{
	/// <summary>
	/// Class for role data object.
	/// </summary>
	public class Role : IdEntity
	{
		/// <summary>
		/// Gets or sets role name.
		/// </summary>
		public virtual string Name { get; set; }

		/// <summary>
		/// Gets or sets friendly role name.
		/// </summary>
		public virtual string FriendlyName { get; set; }

		/// <summary>
		/// Gets or sets role description.
		/// </summary>
		public virtual string Description { get; set; }

		/// <summary>
		/// Gets users that has this role.
		/// </summary>
		public virtual IList<User> UsersInRole { get; protected set; }
	}
}
